home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / eulisp / feel0_89.lha / Feel / Doc / #fns.doc# next >
Encoding:
Text File  |  1993-05-20  |  1011 b   |  54 lines

  1.  
  2. Documentation for the iteration functions is a little scanty, and only
  3. a few exist: 
  4.  
  5. while (in the loops module)
  6. ----------
  7. (while pred forms...) 
  8.  
  9. Do forms while pred is true:
  10.  
  11. (while (test x)
  12.   (zap x))
  13.  
  14. for (in the loops module)
  15. ----------
  16. (for init cond int body...)
  17.  
  18. execute the init form, then while cond remains non-nil repeatedly
  19. execute the body, followed by the inc form:
  20.  
  21.  (for (setq i 0)
  22.      (< i 10)
  23.      (setq x (+ i 1))
  24.   (wibble (vref zzz i)))
  25.  
  26. delete
  27. ----------
  28. (delete x l p)
  29. Returns a copy of l with the first elt such that 
  30. the predicate p applied to it returns non-nil removed.
  31.  
  32. member
  33. ----------
  34. (member x l pred)
  35.  
  36. Test successive cars of l with predicate until predicate returns true.
  37. The remainder of the list is returned, or if no test succeeds, nil is
  38. returned. 
  39.  
  40. memq
  41. ----------
  42. (memq x l)
  43. Faster version of member, equiv to (member x l eq).
  44.  
  45. assoc
  46. ----------
  47. (assoc x l p)
  48. Association list lookup using pred as predicate.
  49.  
  50. assq
  51. ----------
  52. (assq x l)
  53. Equivalent to (assoc x l eq).
  54.